package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import android.text.TextUtils;

import net.wxxr.http.interfaces.IJsonParser;

public class FeedReportWeekBean implements IJsonParser, Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * {
            "date": 1396800000,
            "defecate_count": 0,
            "feed_all_breast_amount": 0,
            "feed_all_breast_count": 0,
            "feed_formula_amount": 0,
            "feed_formula_count": 0,
            "feed_left_breast_count": 1,
            "feed_left_breast_time_amount": 1,
            "feed_nature_amount": 0,
            "feed_nature_count": 0,
            "feed_right_breast_count": 0,
            "feed_right_breast_time_amount": 0,
            "sleep_count": 0,
            "sleep_time_amount": 0,
            "urine_and_defecate_count": 0,
            "urine_count": 0
        }
	 */
	private float start;
	private float end;
	private int defecate_count;
	private int feed_all_breast_amount;
	private int feed_all_breast_count;
	private int feed_formula_amount;
	private int feed_formula_count;
	private int feed_left_breast_count;
	private int feed_left_breast_time_amount;
	private int feed_nature_amount;
	private int feed_nature_count;
	private int feed_right_breast_count;
	private int feed_right_breast_time_amount;
	private int sleep_count;
	private int sleep_time_amount;
	private int urine_and_defecate_count;
	private int urine_count;
	
	public float getStart() {
		return start;
	}

	public void setStart(float start) {
		this.start = start;
	}

	public float getEnd() {
		return end;
	}

	public void setEnd(float end) {
		this.end = end;
	}

	public int getDefecate_count() {
		return defecate_count;
	}

	public void setDefecate_count(int defecate_count) {
		this.defecate_count = defecate_count;
	}

	public int getFeed_all_breast_amount() {
		return feed_all_breast_amount;
	}

	public void setFeed_all_breast_amount(int feed_all_breast_amount) {
		this.feed_all_breast_amount = feed_all_breast_amount;
	}

	public int getFeed_all_breast_count() {
		return feed_all_breast_count;
	}

	public void setFeed_all_breast_count(int feed_all_breast_count) {
		this.feed_all_breast_count = feed_all_breast_count;
	}

	public int getFeed_formula_amount() {
		return feed_formula_amount;
	}

	public void setFeed_formula_amount(int feed_formula_amount) {
		this.feed_formula_amount = feed_formula_amount;
	}

	public int getFeed_formula_count() {
		return feed_formula_count;
	}

	public void setFeed_formula_count(int feed_formula_count) {
		this.feed_formula_count = feed_formula_count;
	}

	public int getFeed_left_breast_count() {
		return feed_left_breast_count;
	}

	public void setFeed_left_breast_count(int feed_left_breast_count) {
		this.feed_left_breast_count = feed_left_breast_count;
	}

	public int getFeed_left_breast_time_amount() {
		return feed_left_breast_time_amount;
	}

	public void setFeed_left_breast_time_amount(int feed_left_breast_time_amount) {
		this.feed_left_breast_time_amount = feed_left_breast_time_amount;
	}

	public int getFeed_nature_amount() {
		return feed_nature_amount;
	}

	public void setFeed_nature_amount(int feed_nature_amount) {
		this.feed_nature_amount = feed_nature_amount;
	}

	public int getFeed_nature_count() {
		return feed_nature_count;
	}

	public void setFeed_nature_count(int feed_nature_count) {
		this.feed_nature_count = feed_nature_count;
	}

	public int getFeed_right_breast_count() {
		return feed_right_breast_count;
	}

	public void setFeed_right_breast_count(int feed_right_breast_count) {
		this.feed_right_breast_count = feed_right_breast_count;
	}

	public int getFeed_right_breast_time_amount() {
		return feed_right_breast_time_amount;
	}

	public void setFeed_right_breast_time_amount(int feed_right_breast_time_amount) {
		this.feed_right_breast_time_amount = feed_right_breast_time_amount;
	}

	public int getSleep_count() {
		return sleep_count;
	}

	public void setSleep_count(int sleep_count) {
		this.sleep_count = sleep_count;
	}

	public int getSleep_time_amount() {
		return sleep_time_amount;
	}

	public void setSleep_time_amount(int sleep_time_amount) {
		this.sleep_time_amount = sleep_time_amount;
	}

	public int getUrine_and_defecate_count() {
		return urine_and_defecate_count;
	}

	public void setUrine_and_defecate_count(int urine_and_defecate_count) {
		this.urine_and_defecate_count = urine_and_defecate_count;
	}

	public int getUrine_count() {
		return urine_count;
	}

	public void setUrine_count(int urine_count) {
		this.urine_count = urine_count;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		if (!TextUtils.isEmpty(json)) {
			GsonBuilder builder = new GsonBuilder();
			Gson gson = builder.create();
			return gson.fromJson(json, FeedReportWeekBean.class);
		}
		return null;
	}

}
